/*
 * Copyright (c) 2011
 * Huawei.shen@gmail.com All rights reserved
 *
 * This file is a part os Iplite46 software which is a lightweight IPv4/IPv6
 * protocol stack.
 * 
 * !@file: strlen.c
 *   describtion:
 *   A simple implemenation of standard c library function 'strlen'
 */


#include "utils.h"

INT32 _lite_strlen(INT8 * str)
{
    INT32 _idx = 0;

    while (str[_idx++] != 0)
    {
    }

    return --_idx;
}

